T1321834 - DataGrid – Incorrect tooltip on the column header if it too narrow and has sort index#32571
Merged
dmirgaev merged 7 commits intoDevExpress:26_1from Feb 18, 2026
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes DataGrid header-cell hint text so that, when sort indexes are shown and the header is narrow, the tooltip displays the column caption (instead of the sort index text from the hovered indicator element).
Changes:
- Update cell-hint tooltip text selection for header rows to prefer
column.captionover the hovered element’s text. - Add Jest coverage for
cellHintEnabledtooltip behavior (header sort index indicator vs. non-header cells). - Extend the header cell test model to expose the sort-index icon element.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
packages/devextreme/js/__internal/grids/grid_core/views/m_columns_view.ts |
Adjusts tooltip text logic to use the column caption for header rows. |
packages/devextreme/js/__internal/grids/grid_core/column_headers/__tests__/m_column_headers.test.ts |
Adds tests ensuring tooltip shows caption for sort index indicator and cell text for data cells. |
packages/devextreme/js/__internal/grids/grid_core/__tests__/__mock__/model/cell/header_cell.ts |
Adds a helper to locate the sort-index icon within a header cell for tests. |
packages/devextreme/js/__internal/grids/grid_core/views/m_columns_view.ts
Outdated
Show resolved
Hide resolved
...s/devextreme/js/__internal/grids/grid_core/column_headers/__tests__/m_column_headers.test.ts
Outdated
Show resolved
Hide resolved
...s/devextreme/js/__internal/grids/grid_core/column_headers/__tests__/m_column_headers.test.ts
Show resolved
Hide resolved
Raushen
reviewed
Feb 13, 2026
...s/devextreme/js/__internal/grids/grid_core/column_headers/__tests__/m_column_headers.test.ts
Outdated
Show resolved
Hide resolved
Raushen
reviewed
Feb 13, 2026
...s/devextreme/js/__internal/grids/grid_core/column_headers/__tests__/m_column_headers.test.ts
Outdated
Show resolved
Hide resolved
Raushen
reviewed
Feb 13, 2026
...s/devextreme/js/__internal/grids/grid_core/column_headers/__tests__/m_column_headers.test.ts
Outdated
Show resolved
Hide resolved
35f8412 to
c043c91
Compare
packages/devextreme/js/__internal/grids/grid_core/views/m_columns_view.ts
Show resolved
Hide resolved
...s/devextreme/js/__internal/grids/grid_core/column_headers/__tests__/m_column_headers.test.ts
Outdated
Show resolved
Hide resolved
479cf99 to
2f4d37f
Compare
2cd5ac2 to
95ba023
Compare
packages/devextreme/js/__internal/grids/grid_core/views/m_columns_view.ts
Show resolved
Hide resolved
95ba023 to
bbb5f1b
Compare
bbb5f1b to
e12724d
Compare
anna-shakhova
approved these changes
Feb 18, 2026
dmirgaev
added a commit
to dmirgaev/DevExtreme
that referenced
this pull request
Feb 18, 2026
…o narrow and has sort index (DevExpress#32571)
dmirgaev
added a commit
to dmirgaev/DevExtreme
that referenced
this pull request
Feb 18, 2026
…o narrow and has sort index (DevExpress#32571)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.